package com.liqw.crawler.request;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;
import lombok.Data;
import java.util.List;
import java.time.LocalDate;

@Data
public class HouseReq {
    private String id;
    private String building;
    private String city;
    private String community;
    private String district;
    private String roomNumber;
    private String street;
    private String unit;
    @NotNull(message = "面积不能为空")
    @Positive(message = "面积必须大于0")
    private double area;
    @NotNull(message = "卫生间数量不能为空")
    @Positive(message = "卫生间数量必须大于0")
    private int bathrooms;
    @NotNull(message = "卧室数量不能为空")
    @Positive(message = "卧室数量必须大于0")
    private int bedrooms;
    private LocalDate createdAt;
    private String decoration;
    private String description;
    @NotNull(message = "楼层不能为空")
    @Positive(message = "楼层必须大于0")
    private int floor;
    @NotNull(message = "客厅数量不能为空")
    @Positive(message = "客厅数量必须大于0")
    private int livingRooms;
    private String orientation;
    private String photos;
    @NotNull(message = "价格不能为空")
    @Positive(message = "价格必须大于0")
    private double price;
    private String propertyType;
    private String title;
    @NotNull(message = "总楼层不能为空")
    @Positive(message = "总楼层必须大于0")
    private int totalFloors;
    private LocalDate updatedAt;
    private String videoUrl;
}